﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using StructureMap.Attributes;
using StructureMap.Configuration.DSL;
using MyBBS.Data.SqlServer;

namespace MyBBS.Data
{
    public class DBServiceRegistry : Registry
    {
        protected override void configure()
        {
            ForRequestedType<PostDataContext>()
                .TheDefaultIs(() => new PostDataContext())
                .CacheBy(InstanceScope.Hybrid);
        }
    }
}
